package com.len.controller;

import com.alipay.api.AlipayClient;
import lombok.Data;
import org.springframework.stereotype.Component;

@Data
@Component
public class  AlipayConfig {



//
//    // 应用ID,您的APPID,收款账号既是您的APPID对应支付宝账号,开发时使用沙箱提供的APPID，生产环境改成自己的APPID
//    public static String APPID = "2021000117616318";
//
//    // 商户私钥，
//    public static String APP_PRIVATE_KEY = "MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCv4B18GGPFX963efa/njdTyXZbsmCOwxiNhryeDJv/uHx1ETpQheTTec5HF/L4gmR0zRYSgUAMvopX4tBsgOaK0OTwycXmlm+4WhcqSmglDktepuYmff7A3RN63OILPfup+ReeGhvsjZVT3rcU7Q0YSF9M1depEaskTh+U9de138yoZ0JqJXGCFHNEGo8m1+JqP3JQWB+KyscmEv97m4/PDS4jjI9NOpcpyMoD94k02mCiYHDnjYLNyMh+FX7HfPFZ6mAOzLuEUjtkOWY3x1Az5J6bKG3Ua4ujMOMQuNGn7qxDaMO9bqKj44FYB6y0jajDCZGzQZzDXi+Mwx9wjtFNAgMBAAECggEBAKt6zeS/9w9rsUCddztPrUxRYsh3PHQVvuvG0kMbskJ8A0U1XfFDC2AyJDDnJeytXfsQN5QlV2jVoxebu3H/oEj68i3f3cg9J4LMvEdssuxmapBIFKC1Ol2bcDHcCb3CWo1YpHFvrYhQZ6eVwFZz5s+lSN4mphZfdsl4LozTwtW9V4AWWr32onFB+qKTxRkboBL0K4QmCkmgewtOEBRn1SLpRI+oStfenbkH82mVFthDk17ikBqnxFGLc3Ayb4IETb8DRl9P05wsqucka7CGtk4EfiXbTX3QSxE9FzYl0kERpzu64M5Yd0zb+6Ycef5KDmhFIwFt/Ltr1SpWnrUvxXUCgYEA51qiScjsKnDUgveTtnO0PqrvexlZC8oNG7dQs/7uXC9qDcADgts/dPMkMdPTIq+FQAyl9jgRVWAeAf/9PqkU1GgzgR0BmG/t/zFJhy45mx/Sw7JXYuHjdLfOxyktsnjhWMlw53jB818LdeKILi3r5FiBCx7SQc4rp37ikZhZ5nMCgYEAwpx/jOLwHM4cMNCEdcOdRFB8B4LizH1hKC+3DTT0qxO+Kc3Qzs+y9RZv+09zGE7YSKJdWSrvuEtWfIVvUCNkLQEYMu07x3N37g93vQMHlp6RsjpT0NTKHkLL6w3ukKzjEv4+mAopPyN/h/JyW2pZ4ACbo4XyudmUXQ7Db5oCuT8CgYEAgZvR7TolrEUXmONwGjfJ043ZqgHyU9t26n8RNDVufbCGXnuiu+1uKGuKbGu6DeV85fvwAfc5JrY5OW+bBT6eD7zslbmVSjvyfhOzmIq59QCoB8Biml/oGFxc+FBGbISx4hbALL0HEvu9JOaq2gwZ6gv3By7WJc2FwUkhTuWl/6cCgYB+Q/250jAJ8Gx3+4JFyhJKlZGzaedu19ZmtXal+frY2KlkBCZ7WGT7AYDMZEL/vYA0uCuqw+HfB/poNkb/jsbbMD+cIzHK+Y8RhTWiC8ornlxXb+KbtsQgmCQoMNTdR17ZHt5L1SPn1EdVVCeASmNfo+VXVnwiuxm4uvBwg1NLDwKBgG1Z8vngBhN6u8y/EE5ddA2qXGcm9B2jKPgY/l+kd6Xnhci3QoVLXgp3ssC9Mr0AsT4jliJFJrwk0+kNsS5v2OiWlNUSxgor7F/v1I2w2ckYCeXrrqXWBj8bPxbWpxRz2+dsSZSM8W+nX4y1G/nDvwKssuyF71rj6J28owjGXRMl";
//    // 支付宝公钥,查看地址：https://openhome.alipay.com/platform/keyManage.htm 对应APPID下的支付宝公钥
//    public static String ALIPAY_PUBLIC_KEY = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnMgyJTjvluwAGwrp+eu5nDM8Kcf6MsOkOQIe1JOTGjluRjRUxjqlcu2EOJvPNA2PNGlP7gHo2ziOkHrW1KdOXI0hhANytpH2+5vYV5d4E1sh6CqDtiQxREu7r2Ih6j98CRjCXczAtVpgDxziIrrgIZedqPU9F2Ghtd4w3owLxmtoOZIj8kBi50kng9XtRbOZD+9Spnom3MV2i5oixc69KFcymS+JrXVUS2/5qOMp4UABhT8qjhjqFFdMh980JZwft9LaldsMvojMZ6KVfFYe5bC/MQ9QkQNw6k7GBITAzUE3Vm+L0TxXI37gXORXD0LDGcwc/3h0ipGFGz5+V/Ag1wIDAQAB";
//
//    // 服务器异步通知页面路径,需http://格式的完整路径，不能加自定义参数，必须外网可以正常访问
//    public static String notify_url = "";
//
//    // 页面跳转同步通知页面路径 需http://格式的完整路径，不能自定义参数，支付成功后返回的页面
//    public static String return_url = "http://localhost:8080/order.html";
//
//    // 签名方式
//    public static String sign_type = "RSA2";
//
//    // 字符编码格式
//    public static String CHARSET = "utf-8";
//
//    // 支付宝网关，这是沙箱的网关
//    public static String URL = "https://openapi.alipaydev.com/gateway.do";
//
//// 支付宝网关
// //public static String log_path = "https://openapi.alipay.com/gateway.do";
//    /**获得初始化的AlipayClient
//     * @return 支付宝客户端
//     */



    // 沙箱appid
    public static String APPID = "2021002132677874";
    // 私钥 pkcs8格式的
    public static String RSA_PRIVATE_KEY = "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCELtfHig8w6eFUriVxFE0WxzuctFpD3HWgU/Fuk4IDN+09dnnVDn/j5os5uPVdNOjinFXT0VQvSw4o3OAjSKNkua4uKPUpHkfj78ULkwQ7wsEksvkAqCxnDkxZpW3piOAl+2SyCRZOLyjCsJCXrWE8X0jtIB6r2FXP/k0RRWvqfbxKo/lEE0F6gXaFimqhqTXW6AhYHVkAr2vEMXUFgXRxDxoMWvB6YDqM1RL2VSlPR6hw9cXmHBLjcxuPzopNAEkkDoCVVA4/dl8RoltreQJ+/3ZtylWL7u5g1moJY+7Knh8RUzD+ALhrRoh8UVlBEwozkgP5Ashx879GpcCYSX9tAgMBAAECggEAHrGJ5YnHcUI90p4Fj7Z5GBr3WrH+a9ebcLlNTLHv9LNd4XHLZI/TXqZAGg063IPWuBg5TdBDzh+NkCuJ2GebmV4MdieIlh2z79fTV5ax2vakRtNQQrjKZr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If9UuOaS8ihOg//TDCV4=" ;
            //请求网关  固定
    public static String URL = "https://openapi.alipay.com/gateway.do";
    //异步通知地址
    public static String notify_url = "http://xxx/alipay/notify";
    //同步地址
	public static String return_url  = "http://br.bairuihuayuan.com:8081/ftl/main/result.html";
    // 编码
    public static String CHARSET = "UTF-8";
    // 返回格式
    public static String FORMAT = "json";
    // 支付宝公钥
    public static String ALIPAY_PUBLIC_KEY = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAkvUtXhvZKItg88UvZffnbnaUqb7EPrmfMfao9yre+0ekaGabiILl+lGq/JdIF8pYdEoWu3qCxJvKWawQU40vY3DESk8QNiEkll2RU4B7FAmdutELtrSn7hWGxyMWPBaPqCQgq04mDr3ZHrPVTzera1GjVEWc2pAR+NhkuKoPfQBGdY3acyDvrJnl9OEdnmdUjtNsu1nRvlmhL+K7YK7aKKmxcgMylXrylYdci7Odfya9MydRzpOu7w68RuRQgaoJjnM2eYfMDMYVHs2crC8UfM1IHuzQdEdDVRmiAjHumvQq9yJPPTU6vp1zzCFCi82MkfASUUlR+D++SpQjsO9XGwIDAQAB " ;
               // 沙箱支付宝公钥
    public static String ZHIFUBAO_PUBLIC_KEY = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAhC7Xx4oPMOnhVK4lcRRNFsc7nLRaQ9x1oFPxbpOCAzftPXZ51Q5/4+aLObj1XTTo4pxV09FUL0sOKNzgI0ijZLmuLij1KR5H4+/FC5MEO8LBJLL5AKgsZw5MWaVt6YjgJftksgkWTi8owrCQl61hPF9I7SAeq9hVz/5NEUVr6n28SqP5RBNBeoF2hYpqoak11ugIWB1ZAK9rxDF1BYF0cQ8aDFrwemA6jNUS9lUpT0eocPXF5hwS43Mbj86KTQBJJA6AlVQOP3ZfEaJba3kCfv92bcpVi+7uYNZqCWPuyp4fEVMw/gC4a0aIfFFZQRMKM5ID+QLIcfO/RqXAmEl/bQIDAQAB";
    // RSA2
    public static String SIGNTYPE = "RSA2";

}
